const { spawn } = require("child_process");
function command(...args) {
	return new Promise((resolve, reject) => {
		const childProcess = spawn(...args);

		// childProcess.stdout.pipe(process.stdout);
		childProcess.stderr.pipe(process.stderr);
		childProcess.on("close", function () {
			resolve();
		});
	});
}
module.exports = { command };
